package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String username;
    private String password;
    private String datetime;
    private int userId;
    private int level;
    private int coin;
    private int fans;
    private int guanzhu;
    private int huozan;
    private String signature;
    private String gender;
    private String userimg;
    public User(String username, String password, String datetime, int userId, int level, int coin, int fans, int guanzhu, int huozan, String signature, String gender) {
        this.username = username;
        this.password = password;
        this.datetime = datetime;
        this.userId = userId;
        this.level = level;
        this.coin = coin;
        this.fans = fans;
        this.guanzhu = guanzhu;
        this.huozan = huozan;
        this.signature = signature;
        this.gender = gender;
    }
    public void setDatetime() {
        this.datetime = String.valueOf(LocalDateTime.now());
    }
}
